class UsersController < ApplicationController
  def update
    @user = User.find(params[:id])
    respond_to do |format|
      if @user.update_attributes(params[:user])
        format.html { redirect_to "/profile", notice: 'User was successfully updated.' }
        format.json { head :no_content }
      else
        format.html {redirect_to "/profile", notice:"Have errors"}
        format.json { render json: @user.errors, status: :unprocessable_entity }
      end
    end
  end

  def show
  end
end
